package com.healthyeating.manage.mapper;

import java.util.List;
import com.healthyeating.manage.domain.Eat;

/**
 * 进食记录Mapper接口
 * 
 * @author 段奇乐
 * @date 2024-12-18
 */
public interface EatMapper 
{
    /**
     * 查询进食记录
     * 
     * @param eatId 进食记录主键
     * @return 进食记录
     */
    public Eat selectEatByEatId(Long eatId);

    /**
     * 查询进食记录列表
     * 
     * @param eat 进食记录
     * @return 进食记录集合
     */
    public List<Eat> selectEatList(Eat eat);

    /**
     * 新增进食记录
     * 
     * @param eat 进食记录
     * @return 结果
     */
    public int insertEat(Eat eat);

    /**
     * 批量新增进食记录
     * @param eatList
     * @return
     */
    public int batchInsertEat(List<Eat> eatList);

    /**
     * 修改进食记录
     * 
     * @param eat 进食记录
     * @return 结果
     */
    public int updateEat(Eat eat);

    /**
     * 批量修改进食记录
     * @param eatList
     * @return
     */
    public int batchUpdateEat(List<Eat> eatList);

    /**
     * 删除进食记录
     * 
     * @param eatId 进食记录主键
     * @return 结果
     */
    public int deleteEatByEatId(Long eatId);

    /**
     * 批量删除进食记录
     * 
     * @param eatIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEatByEatIds(Long[] eatIds);
}
